<?

# Getting google.com search results

require dirname(__FILE__) . '/../lib/phrowser.class.php';

$b = new phrowser();
$b->url_get('http://google.com/search?q=Ukraine');
$m = $b->find_all_matches('/<h3 class=r>(.*?)<\/h3>/i');

foreach ( $m as $matches )
{
	$match = strip_tags(array_shift($matches));
	echo (++$i) . ".\t$match\n";
}